﻿using Inovout.Gis.Geometry;
using System.Collections.Generic;
using Inovout.Land;
using System.Linq;

namespace Inovout.Gis.Land.DiLei
{
    public class DiLeiPolygonLayer : DiLeiLayer
    {
        internal DiLeiPolygonLayer(IGeometryLayerInfo layerInfo) :
            base(layerInfo)
        {
        }
        public IEnumerable<DiLeiPolygon> Polygons
        {
            get { return base.Geometries.Cast<DiLeiPolygon>(); }
        }

        internal List<FLMJX> GetDLMJXs()
        {
            double mj = 0;
            foreach (var polygon in Polygons)
            {
                string dl = polygon.DLCode;
                mj = +polygon.Area;
            }
            return null;
        }

        internal void Intersect(DiLeiPoint point, out double mj)
        {
            mj = 0;
        }
    }
}
